﻿<Window x:Class="PlayerScanner.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:PlayerScanner"
        xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase"
        Title="{Binding Title}" Height="700" Width="475">
    <Window.Resources>
        <CollectionViewSource Source="{Binding PlayerList}" x:Key="sortedPlayers">
            <CollectionViewSource.SortDescriptions>
                <scm:SortDescription PropertyName="Index"/>
            </CollectionViewSource.SortDescriptions>
        </CollectionViewSource>
    </Window.Resources>
    <DockPanel>
        <Menu DockPanel.Dock="Top" IsMainMenu="True">
            <MenuItem Header="_File">
                <MenuItem Header="Exit" Click="ExitMenuItemClick"/>
            </MenuItem>
            <MenuItem Header="_View">
                <MenuItem Header="FloorItems" Click="FloorItemsMenuItemClick"/>
                <MenuItem Header="Settings" Click="SettingsMenuItemClick"/>
            </MenuItem>
        </Menu>
        <Grid DockPanel.Dock="Bottom">
            <StackPanel Orientation="Horizontal">
                <Label Content="Room Leader:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                <Label Content="{Binding LeaderName}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                <Label Content="(" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                <Label Content="{Binding LeaderSectionId}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                <Label Content=")" HorizontalAlignment="Left" VerticalAlignment="Top"/>
            </StackPanel>
        </Grid>
        <DockPanel LastChildFill="True">
            <TabControl TabStripPlacement="Left"
                ItemsSource="{Binding Source={StaticResource sortedPlayers}}" SelectedItem="{Binding SelectedPlayer, Mode=TwoWay}">
                <TabControl.ItemTemplate>
                    <DataTemplate>
                        <Grid Margin="-5,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                            <Grid.RowDefinitions>
                                <RowDefinition/>
                                <RowDefinition/>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="130"/>
                            </Grid.ColumnDefinitions>
                            <DockPanel Grid.Row="0" LastChildFill="True">
                                <Label DockPanel.Dock="Left" FontWeight="Bold" HorizontalAlignment="Left" Content="{Binding PlayerName}"/>
                                <StackPanel DockPanel.Dock="Right" HorizontalAlignment="Right" Orientation="Horizontal">
                                    <Label Content="{Binding AppliedShifta}"/>
                                    <Label>/</Label>
                                    <Label Content="{Binding AppliedDeband}"/>
                                </StackPanel>
                                <StackPanel/>
                            </DockPanel>
                            <DockPanel Grid.Row="1" LastChildFill="True">
                                <TextBlock DockPanel.Dock="Left" Margin="5,0,0,0" HorizontalAlignment="Left" Text="{Binding IsPhotonBlastCharged, Converter={StaticResource pbConverter}}"/>
                                <StackPanel DockPanel.Dock="Right" HorizontalAlignment="Right" Orientation="Horizontal">
                                    <TextBlock Margin="5,0,0,0" Text="{Binding AppliedShiftaTime, StringFormat={}{0:mm}:{0:ss}, FallbackValue=00:00}"/>
                                    <Label>/</Label>
                                    <TextBlock Margin="5,0,0,0" Text="{Binding AppliedDebandTime, StringFormat={}{0:mm}:{0:ss}, FallbackValue=00:00}"/>
                                </StackPanel>
                                <StackPanel/>
                            </DockPanel>
                        </Grid>
                    </DataTemplate>
                </TabControl.ItemTemplate>
                <TabControl.ContentTemplate>
                    <DataTemplate>
                        <TabControl Name="tabs" SelectedIndex="{Binding ViewScope, Mode=TwoWay, Converter={StaticResource playerViewScopeConverter}}">
                            <TabItem Name="tabInventory" Header="Inventory" DataContext="{Binding InventoryViewModel}">
                                <DockPanel LastChildFill="True">
                                    <ScrollViewer DockPanel.Dock="Top" VerticalScrollBarVisibility="Auto">
                                        <ItemsControl ItemsSource="{Binding Inventory}" ItemTemplate="{StaticResource itemHeaderTemplate}"/>
                                    </ScrollViewer>
                                    <Grid DockPanel.Dock="Bottom">
                                        <Grid.RowDefinitions>
                                            <RowDefinition/>
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition/>
                                            <ColumnDefinition/>
                                        </Grid.ColumnDefinitions>
                                        <StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal">
                                            <Label Content="Meseta:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            <Label Content="{Binding Meseta}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                        </StackPanel>
                                        <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right">
                                            <Label Content="{Binding InventoryCount}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            <Label Content="items shown" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                        </StackPanel>
                                    </Grid>
                                    <StackPanel/>
                                </DockPanel>
                            </TabItem>
                            <TabItem Name="tabTechsTraps" Header="Techs / Traps">
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition/>
                                        <RowDefinition/>
                                        <RowDefinition/>
                                    </Grid.RowDefinitions>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition/>
                                        <ColumnDefinition/>
                                        <ColumnDefinition/>
                                    </Grid.ColumnDefinitions>
                                    <GroupBox Grid.Row="0" Grid.Column="0" Header="Simple">
                                        <StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Grid.Row="0" Content="Foie:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Foie}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Barta:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Barta}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Zonde:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Zonde}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                        </StackPanel>
                                    </GroupBox>
                                    <GroupBox Grid.Row="1" Grid.Column="0" Header="Gi">
                                        <StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Gifoie:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Gifoie}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Gibarta:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Gibarta}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Gizonde:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Gizonde}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                        </StackPanel>
                                    </GroupBox>
                                    <GroupBox Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" Header="Ra">
                                        <Grid>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition/>
                                                <ColumnDefinition/>
                                                <ColumnDefinition/>
                                            </Grid.ColumnDefinitions>
                                            <StackPanel Grid.Column="0" Orientation="Horizontal">
                                                <Label Content="Rafoie:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Rafoie}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Grid.Column="1" Orientation="Horizontal">
                                                <Label Content="Rabarta:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Rabarta}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Grid.Column="2" Orientation="Horizontal">
                                                <Label Content="Razonde:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Razonde}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                        </Grid>
                                    </GroupBox>
                                    <GroupBox Grid.Row="0" Grid.Column="1" Grid.RowSpan="2" Header="Support">
                                        <StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Resta:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Resta}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Anti:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Anti}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Reverser:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Reverser}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Ryuker:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Ryuker}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Shifta:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Shifta}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Deband:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Deband}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Jellen:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Jellen}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Zalure:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Zalure}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                        </StackPanel>
                                    </GroupBox>
                                    <GroupBox Grid.Row="0" Grid.Column="2" Header="Special">
                                        <StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Grants:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Grants}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Megid:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Megid}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                        </StackPanel>
                                    </GroupBox>
                                    <GroupBox Grid.Row="1" Grid.Column="2" Header="Traps">
                                        <StackPanel>
                                            <StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal">
                                                <Label Content="Damage:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Damage}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal">
                                                <Label Content="Freeze:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Freeze}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal">
                                                <Label Content="Confuse:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Confuse}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal">
                                                <Label Content="Slow:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Slow}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                        </StackPanel>
                                    </GroupBox>
                                </Grid>
                            </TabItem>
                            <TabItem Name="tabStats" Header="Stats">
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition/>
                                        <RowDefinition/>
                                        <RowDefinition/>
                                    </Grid.RowDefinitions>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition/>
                                        <ColumnDefinition/>
                                    </Grid.ColumnDefinitions>
                                    <GroupBox Grid.Row="0" Grid.Column="0" Header="Stat Points: (Current) Base | Max">
                                        <StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Atp:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="(" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                <Label Content="{Binding Power}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content=")" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                <Label Content="{Binding BasePower}" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                <Label Content="|" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding MaxPower}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Mst:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="(" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                <Label Content="{Binding Mind}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content=")" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                <Label Content="{Binding BaseMind}" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                <Label Content="|" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding MaxMind}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Def:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="(" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                <Label Content="{Binding Defense}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content=")" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                <Label Content="{Binding BaseDefense}" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                <Label Content="|" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding MaxDefense}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Ata:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="(" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                <Label Content="{Binding Accuracy}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content=")" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                <Label Content="{Binding BaseAccuracy}" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                <Label Content="|" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding MaxAccuracy}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Evp:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="(" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                <Label Content="{Binding Evasion}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content=")" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                <Label Content="{Binding BaseEvasion}" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                <Label Content="|" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding MaxEvasion}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Lck:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="(" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                <Label Content="{Binding Luck}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content=")" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                <Label Content="{Binding BaseLuck}" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                <Label Content="|" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding MaxLuck}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Hp:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="(" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                <Label Content="{Binding Hp}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content=")" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Tp:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="(" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                                <Label Content="{Binding Tp}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content=")" HorizontalAlignment="Left" VerticalAlignment="Top" />
                                            </StackPanel>
                                        </StackPanel>
                                    </GroupBox>
                                    <GroupBox Grid.Row="0" Grid.Column="1" Header="Materials Used">
                                        <StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Attack:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding PowerMaterial}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Mind:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding MindMaterial}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Defense:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding DefenseMaterial}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Evasion:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding EvadeMaterial}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="Luck:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding LuckMaterial}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="HP:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding HpMaterial}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Orientation="Horizontal">
                                                <Label Content="TP:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding TpMaterial}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                        </StackPanel>
                                    </GroupBox>
                                    <GroupBox Grid.Row="1" Grid.ColumnSpan="2" Header="Resistance">
                                        <Grid>
                                            <Grid.RowDefinitions>
                                                <RowDefinition/>
                                                <RowDefinition/>
                                            </Grid.RowDefinitions>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition/>
                                                <ColumnDefinition/>
                                                <ColumnDefinition/>
                                            </Grid.ColumnDefinitions>
                                            <StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal">
                                                <Label Content="EFR:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding FireResistance}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal">
                                                <Label Content="EIC:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding IceResistance}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Grid.Row="0" Grid.Column="2" Orientation="Horizontal">
                                                <Label Content="ETH:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding ThunderResistance}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal">
                                                <Label Content="EDK:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding DarkResistance}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal">
                                                <Label Content="ELT:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding LightResistance}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                        </Grid>
                                    </GroupBox>
                                    <GroupBox Grid.Row="2" Grid.ColumnSpan="2" Header="Miscellaneous">
                                        <Grid>
                                            <Grid.RowDefinitions>
                                                <RowDefinition/>
                                                <RowDefinition/>
                                                <RowDefinition/>
                                            </Grid.RowDefinitions>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition/>
                                                <ColumnDefinition/>
                                            </Grid.ColumnDefinitions>
                                            <StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal">
                                                <Label Content="Class:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding Character}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal">
                                                <Label Content="Guild Card:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding GuildCard}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Grid.Row="1" Grid.Column="0" Orientation="Horizontal">
                                                <Label Content="Total Experience:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding TotalExperience}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal">
                                                <Label Content="Experience to Next Level:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding ExperienceTillNextLevel}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                            <StackPanel Grid.Row="2" Grid.Column="0" Orientation="Horizontal">
                                                <Label Content="Section Id:" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                                <Label Content="{Binding SectionId}" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                                            </StackPanel>
                                        </Grid>
                                    </GroupBox>
                                </Grid>
                            </TabItem>
                        </TabControl>
                    </DataTemplate>
                </TabControl.ContentTemplate>
            </TabControl>
        </DockPanel>
    </DockPanel>
</Window>
